<div class="ui-grid-row ui-widget-content" style="height:65%;">
    <div class="ui-g">
        <form [formGroup]="reportCreateForm" style="width:100%;margin-top: 1em;">
            <div class="ui-g-12">
                <div class="ui-g-4 label">报表名称</div>
                <div class="ui-g-8 ui-fluid">
                    <input pInputText type="text" formControlName="reportName" />
                </div>
            </div>
            <div class="ui-g-12">
                <div class="ui-g-4 label">分组名称</div>
                <div class="ui-g-8 ui-fluid">
                    <input pInputText type="text" formControlName="groupName" />
                </div>
            </div>
            <div class="ui-g-12">
                <div class="ui-g-4 label">报表类型</div>
                <div class="ui-g-8 ui-fluid">
                    <p-dropdown [options]="queryTypes" formControlName="reportTypeId" (onChange)="reportTypeChange($event, value)"></p-dropdown>
                </div>
            </div>
            <div *ngIf="currentReportTypeId != 3" class="ui-g-12">
                <div class="ui-g-4 label">所属业务</div>
                <div class="ui-g-8 ui-fluid">
                    <p-dropdown [options]="bizs" formControlName="bizId" [filter]="true" label="bizName"></p-dropdown>
                </div>
            </div>
            <div *ngIf="currentReportTypeId != 3" class="ui-g-12">
                <div class="ui-g-4 label">数据源</div>
                <div class="ui-g-8 ui-fluid">
                    <p-dropdown [options]="dataSources" formControlName="dsId" [filter]="true" (onChange)="dsChange($event)"></p-dropdown>
                </div>
            </div>
            <div *ngIf="currentReportTypeId != 3" class="ui-g-12">
                <div class="ui-g-4 label">数据视图</div>
                <div class="ui-g-8 ui-fluid">
                    <p-dropdown [options]="dataviews" formControlName="dataviewName" [filter]="true" placeholder="v_report_xxx"></p-dropdown>
                </div>
            </div>
            <!-- 访问地址 -->
            <div *ngIf="currentReportTypeId == 3" class="ui-g-12">
                <div class="ui-g-4 label">访问地址</div>
                <div class="ui-g-8 ui-fluid">
                    <input pInputText type="text" formControlName="reportUrl" />
                </div>
            </div>
        </form>
    </div>
</div>
<div class="ui-grid-row">
    <div class="button-item">
        <button pButton type="text" class="ui-button-danger" icon="fa fa-times" label="取消" (click)="cancel()"></button>
        <button pButton type="text" class="ui-button-info" icon="fa fa-plus" label="保存" (click)="create()"></button>
    </div>
</div>